import request from "@/utils/request";
// 菜单基础URL

const MoneyApi = {
  getList(queryParams: any) {
    return request<any>({
      url: "billing/list",
      method: "get",
      params: queryParams,
    });
  },
  //扣款
  supplierCut(data: any) {
    return request<any>({
      url: "supplierWithdraw/cut",
      method: "post",
      data: data,
    });
  },
  //供应商列表
  getSupplierList(queryParams: any) {
    return request<any>({
      url: "supplierWithdraw/list",
      method: "get",
      params: queryParams,
    });
  },
  //提现审核
  supplierApproval(data: any) {
    return request<any>({
      url: "supplierWithdraw/approval",
      method: "post",
      data: data,
    });
  },
  //提交扫描件
  uploadPdf(data: any) {
    return request<any>({
      url: "billing/withdraw",
      method: "post",
      data: data,
    });
  },
  //确认附件
  enclosureConfirm(data: any) {
    return request<any>({
      url: "supplierWithdraw/enclosureConfirm",
      method: "post",
      data: data,
    });
  },
  //修改金额
  updateSupplierMoney(data: any) {
    return request<any>({
      url: "supplierWithdraw/edit",
      method: "post",
      data: data,
    });
  },
  //账单明细
  getInfo(queryParams: any) {
    return request<any>({
      url: "billing/itemList",
      method: "get",
      params: queryParams,
    });
  },
};

export default MoneyApi;
